package com.jike.noobmoney.mvp.view.activity;

import android.content.Intent;
import android.view.View;
import android.widget.TextView;

import com.jike.noobmoney.R;

import butterknife.BindView;
import butterknife.OnClick;

public class SettingActivity extends BaseActivity {

    @BindView(R.id.tv_title)
    TextView tvTitle;

    @Override
    protected int layoutResID() {
        return R.layout.activity_setting;
    }

    @Override
    protected void initData() {
        tvTitle.setText("设置");
    }

    @OnClick({R.id.iv_back, R.id.rl_question, R.id.rl_cooperation, R.id.rl_about_us, R.id.rl_lianxi})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.iv_back:
                finish();
                break;
            case R.id.rl_question:
                //常见问题
                startActivity(new Intent(context, QuestionActivity.class));
                break;
            case R.id.rl_cooperation:
                //商务合作
                startActivity(new Intent(context, CooperationActivity.class));
                break;
            case R.id.rl_about_us:
                //关于我们
                startActivity(new Intent(context, AboutUsActivity.class));
                break;
            case R.id.rl_lianxi:
                //意见反馈
                startActivity(new Intent(context, FeedBackActivity.class));
                break;

        }
    }

}
